

            const path = require('path');
            const staticImg = path.join(__dirname, 'static');

            function ArduinoUnoBlocks (Blockly) {
            
                        
                        
                        
                Blockly.Blocks['EXT_NRF24_BLOCK_1609322024509'] = {

                    init: function() {
                        this.jsonInit({
                            "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609322024509,
                            "args0": [
                                
                            {
                                "type": "input_value",
                                "name": "item"
                            },
                
                            ],
                            "colour": "#71BE1E",
                            "extensions": [ "output_string"]
                        });
                        }

                };                       
                        
                        
                        
                        
                        
                        
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609318842434'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609318842434,
                                    "args0": [
                                        
                                    {
                                        "type": "input_value",
                                        "name": "number"
                                    },
                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609319094810'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609319094810,
                                    "args0": [
                                        
                        {
                            "type": "field_dropdown",
                            "name":  "Power",
                            "options": [
                                [Blockly.Msg.EXT_NRF24_BLOCK_1609319094810_POWER_0,  'MIN'],
                                [Blockly.Msg.EXT_NRF24_BLOCK_1609319094810_POWER_1,  'LOW'],
                                [Blockly.Msg.EXT_NRF24_BLOCK_1609319094810_POWER_2,  'HIGH'],
                                [Blockly.Msg.EXT_NRF24_BLOCK_1609319094810_POWER_3,  'MAX'],

                            ]
                        },
                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609319376367'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609319376367,
                                    "args0": [
                                        
                        {
                            "type": "field_dropdown",
                            "name":  "ce",
                            "options": [
                                 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_0,  '2'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_1,  '3'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_2,  '4'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_3,  '5'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_4,  '6'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_5,  '7'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_6,  '8'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_7,  '9'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_8,  '10'],

                            ]
                        },
                        
                        {
                            "type": "field_dropdown",
                            "name":  "cs",
                            "options": [
                                 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_0,  '2'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_1,  '3'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_2,  '4'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_3,  '5'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_4,  '6'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_5,  '7'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_6,  '8'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_7,  '9'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609319376367_CE_8,  '10'],

                            ]
                        },
                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609320679915'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609320679915,
                                    "args0": [
                                        
                        {
                            "type": "input_value",
                            "name": "data"
                        },
                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609321402619'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609321402619,
                                    "args0": [
                                         
                        {
                            "type": "input_value",
                            "name": "data",
                        },
                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609321496516'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609321496516,
                                    "args0": [
                                        
                        {
                            "type": "field_dropdown",
                            "name":  "listen",
                            "options": [
                                 [Blockly.Msg.EXT_NRF24_BLOCK_1609321496516_LISTEN_0,  'start'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609321496516_LISTEN_1,  'stop'],

                            ]
                        },
                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609321655089'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609321655089,
                                    "args0": [
                                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions":[ "output_boolean"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609321869457'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609321869457,
                                    "args0": [
                                        
                        {
                            "type": "input_value",
                            "name": "number"
                        },
                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609322024507'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609322024507,
                                    "args0": [
                                        
                        {
                            "type": "input_value",
                            "name": "text"
                        },
                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };

                        //nrf接收数据
// Blockly.Blocks.EXT_NRF24_BLOCK_1609322024507 = {
//     init: function() {
//       this.setColour("#71BE1E");
//       this.appendDummyInput("")
//           .appendField(Blockly.EXT_NRF24_BLOCK_1609322024507);
//           this.appendValueInput("nrfdatasss", Number)
//         this.setInputsInline(true);
//         this.appendDummyInput("")
//         .appendField(Blockly.RF24_GENRE)
//             .appendField(new Blockly.FieldDropdown(
//          [
//               ['整数','int'],
//               ['无符号整数','unsigned int'],
//               ['字','word'],
//               ['长整数','long'],
//               ['无符号长整数','unsigned long'],
//               ['小数','float'],
//               ['双精度浮点数','double'],
//               ['布尔','boolean'],
//               ['字节','byte'],
//               ['字符','char'],
//               ['无符号字符','unsigned char'],
//       ]
//       ), "GENRE")
//       this.setPreviousStatement(true, null);
//       this.setNextStatement(true, null);
//       this.setTooltip('');
//     }
//   };
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609322134790'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609322134790,
                                    "args0": [
                                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions":["output_number"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_NRF24_BLOCK_1609322250671'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_NRF24_BLOCK_1609322250671,
                                    "args0": [
                                        
                        {
                            "type": "field_dropdown",
                            "name":  "speed",
                            "options": [
                                 [Blockly.Msg.EXT_NRF24_BLOCK_1609322250671_SPEED_0,  '1MBPS'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609322250671_SPEED_1,  '2MBPS'],
 [Blockly.Msg.EXT_NRF24_BLOCK_1609322250671_SPEED_2,  '250KBPS'],

                            ]
                        },
                        
                                    ],
                                    "colour": "#71BE1E",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
            return Blockly;
            }

            module.exports = ArduinoUnoBlocks ;

        